-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
feat(integrations): add option to filter by integration type #78656
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| ) | ||
| assert response.data == [] | ||
|
|
||
| def test_integration_type(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: maybe add a test for what happens when u pass both providerKey and integrationType
also maybe throw docs in ur backlog
| DEPLOYMENT = "deployment" | ||
|
|
||
|
|
||
| # Integration Types |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm i would love to do something so that when you register the integrations here
sentry/src/sentry/runner/initializer.py
Lines 59 to 76 in c92f4b8
| for integration_path in settings.SENTRY_DEFAULT_INTEGRATIONS: | |
| try: | |
| integration_cls = import_string(integration_path) | |
| except Exception: | |
| import traceback | |
| click.echo( | |
| f"Failed to load integration {integration_path!r}:\n{traceback.format_exc()}", | |
| err=True, | |
| ) | |
| else: | |
| integrations.register(integration_cls) | |
| for integration in integrations.all(): | |
| try: | |
| integration.setup() | |
| except AttributeError: | |
| pass |
you also register the integration type... cc @RyanSkonnord if you have thoughts
| IntegrationProviderSlug.DISCORD, | ||
| IntegrationProviderSlug.MSTeams, | ||
| ], | ||
| PROJECT_MANAGEMENT: [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Many (or all) of source code management integrations are also project management ones. At least Github and Azure are. @cathteng can confirm which ones for sure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are we grouping integrations by the main focus or by a particular feature? i would say the ticketing aspect of SCMs is a feature
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sentaur-athena @cathteng I just grouped them based on our integration feature list
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cathteng we can come back and update this list since it's not really used anywhere in code other than messaging. My thought is for example if we want to build onboarding and tell people we have these ticket management integrations we still want to return github in that list.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
add query param to filter by
integrationType:messagingproject_managementsource_code_managementon_call_scheduling